/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 *
 *    1, April, 2011. Created
 */

package portfolio.dbHost.dataBases.dbTable.tblColumn;

import portfolio.dbHost.dataBases.dbTable.Table;
import portfolio.dbHost.Host;

/**
 *
 * @author aca ldero
 */
public class ColumnFactory {
    public Column getColumnDBType (int iDBType, Table tableDBParam) throws Exception
    {
        if (iDBType == Host.DB_TYPE_MYSQL) {
            return new MysqlColumn (tableDBParam);
        } else if (iDBType == Host.DB_TYPE_ODBC) {
            return new OdbcColumn (tableDBParam);
        } else {
            throw new Exception ("DB type unknown while trying to create Column.");
        }
    }

}
